﻿function OrderFoodNew(id, planId) {
    var a = prompt('请输入客人数量');
    if ($.isNumeric(a)) {
        document.location.replace("/Food/OrderStart?Id=" + id + "&numberOfPeople=" + a + "&planId=" + planId);
    }
}

function SeatCheck(seatId, seatName) {
    var ok = false;
    $.ajax({
        type: "get",
        url: "/Food/SeatCheck?seatId=" + seatId + "&seatName=" + seatName, 
        async: false,
        success: function (data) {
                if (data == "true") {
                    ok = true;
                }
        }
    });   
    return ok;
}